export default {
  addToCart ({ commit }, product) {
    commit('ADD_TO_CART', {
      id: product.id
    })
  },
  numChange ({ commit }, data) {
    commit('NUM_CHANGE', {
      id: data.id,
      value: data.value
    })
  },
  delProduct ({ commit }, data) {
    commit('DEL_PRODUCT', data)
  },
  clearAllCart ({ commit }) {
    commit('CLEAR')
  }
}
